package com.hotstrip.model.enums;

/**
 * Created by idiot on 2018/8/8.
 */
public enum ResponseCodeEnums {

    ZERO("0", 0),   // 成功
    ERROR("1", 1),  // 错误
    INVALID_USER("无效的用户信息", 11),
    INVALID_PARAM("无效的参数", 12),
    INVALID_RESULT("无效的结果", 13),
    NO_GOODS("库存不足", 201),
    INVALID_TOKEN("无效的token", 510),
    ;

    private String name;
    private Integer value;

    ResponseCodeEnums(String name, Integer value) {
        this.name = name;
        this.value = value;
    }

    public String getName() {
        return name;
    }

    public Integer getValue() {
        return value;
    }
}
